package com.virus.mall.model.vo;

import com.virus.mall.model.CurSpec;
import com.virus.mall.model.CurState;
import com.virus.mall.model.Spec;
import com.virus.mall.model.State;

import java.util.ArrayList;
import java.util.List;

/**
 * @Classname OrderVo
 * @Description NULL
 * @Date 2021/4/19 16:07
 * @Created by virus
 */
public class OrderVo {

    private Integer id;

    private Double amount;

    private Integer num;

    private Integer goodsDetailId;

    private Integer state;

    private String goods;

    private List<Spec> spec;

    private List<State> states;

    private CurState curState;

    private CurSpec curSpec;

    {
        this.states = new ArrayList<State>();
        this.states.add(new State(0, "未付款"));
        this.states.add(new State(1, "未发货"));
        this.states.add(new State(2, "已发货"));
        this.states.add(new State(3, "已完成订单"));
    }

    public OrderVo() {
    }

    public OrderVo(Integer id, Double amount, Integer num, Integer goodsDetailId, Integer state, String goods, List<Spec> spec, CurState curState, CurSpec curSpec) {
        this.id = id;
        this.amount = amount;
        this.num = num;
        this.goodsDetailId = goodsDetailId;
        this.state = state;
        this.goods = goods;
        this.spec = spec;
        this.curState = curState;
        this.curSpec = curSpec;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getGoodsDetailId() {
        return goodsDetailId;
    }

    public void setGoodsDetailId(Integer goodsDetailId) {
        this.goodsDetailId = goodsDetailId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public List<Spec> getSpec() {
        return spec;
    }

    public void setSpec(List<Spec> spec) {
        this.spec = spec;
    }

    public List<State> getStates() {
        return states;
    }

    public void setStates(List<State> states) {
        this.states = states;
    }

    public CurState getCurState() {
        return curState;
    }

    public void setCurState(CurState curState) {
        this.curState = curState;
    }

    public CurSpec getCurSpec() {
        return curSpec;
    }

    public void setCurSpec(CurSpec curSpec) {
        this.curSpec = curSpec;
    }
}
